COMPONENT=HubAppC
CFLAGS += -I$(TOSDIR)/lib/printf

BUILD_EXTRA_DEPS += PrintfMsg.class PrintfClient.class

%.class: %.java
	javac $<

PrintfMsg.java: $(TOSDIR)/lib/printf/printf.h
	mig java -target=$(PLATFORM) $(CFLAGS) \
		-java-classname=PrintfMsg \
		$(TOSDIR)/lib/printf/printf.h printf_msg -o $@

include $(MAKERULES)
